import 'package:superclient/mvp/contract/home_contract.dart';
import 'package:superclient/mvp/model/home_model.dart';

class HomePresenterImpl extends IHomePresenter {
  @override
  void getTest() {
    getView().showLoading();
    HomeModel().getTest(cancelToken()).then((v) {
      getView().dismissLoading();
      getView().showResp(v.toString());
    }, onError: (e) => getView().dismissLoading());
  }
}
